package com.mlethe.library.recyclerview.adapter;

import android.view.View;

import androidx.annotation.NonNull;

import com.mlethe.library.recyclerview.viewholder.DataBindingViewHolder;

import java.util.List;

/**
 * DataBinding 使用
 *
 * @author Mlethe
 * @date 2020/9/15
 */
public abstract class BaseDataBindingAdapter<T> extends BaseDraggableAdapter<T, DataBindingViewHolder> {
    public BaseDataBindingAdapter() {
    }

    public BaseDataBindingAdapter(List<T> data) {
        super(data);
    }

    public BaseDataBindingAdapter(int layoutId) {
        super(layoutId);
    }

    public BaseDataBindingAdapter(List<T> data, int layoutId) {
        super(data, layoutId);
    }

    @Override
    protected DataBindingViewHolder createViewHolder(@NonNull View view) {
        return new DataBindingViewHolder(view);
    }
}
